package com.shine.minepressure.ui.adapter;

import androidx.recyclerview.widget.RecyclerView;

import com.shine.minepressure.R;
import com.shine.minepressure.bean.SensorHisAlarmBean;

import cn.bingoogolapple.baseadapter.BGARecyclerViewAdapter;
import cn.bingoogolapple.baseadapter.BGAViewHolderHelper;

public class HistoryDataFragment5Adapter extends BGARecyclerViewAdapter<SensorHisAlarmBean.RowsDTO> {

    public HistoryDataFragment5Adapter(RecyclerView recyclerView) {
        super(recyclerView, R.layout.item_history_data_child5_adapter);
    }

    @Override
    protected void fillData(BGAViewHolderHelper helper, int position, SensorHisAlarmBean.RowsDTO model) {
        helper.setText(R.id.sensorId, model.getSensorId())
//                .setText(R.id.SensorTypeName, model.getSensorInstallPosition())
//                .setText(R.id.AlarmBeginTime, model.getAlarmBeginTime())
//                .setText(R.id.AlarmEndtTme, model.getAlarmEndtTme())
//                .setText(R.id.Duration, model.getDuration())
//                .setText(R.id.AlarmState, model.getAlarmState())
        ;
    }
}
